package com.lmscn.lms.api.model;

import com.jfinal.plugin.activerecord.Model;

/**
 * Created by Czl on 2015/7/24.
 */
@SuppressWarnings("serial")
public class CourseLearningSetting extends Model<CourseLearningSetting> {
    public static final CourseLearningSetting dao = new CourseLearningSetting();

    /**
     * 根据课程ID查询课时设置
     * @param courseId
     * @return
     */
    public CourseLearningSetting findByCourseId(Long courseId){
        return dao.findFirst("select * from t_course_learning_setting where course_id =?",courseId);
    }

}

